package cn.edu.sdyu.ie.crs.service;

import cn.edu.sdyu.ie.crs.domain.ActivityRoomApplication;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@SuppressWarnings("AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc")
@Service
public interface ActivityRoomApplicationService {

    /**
     * 查询所有活动室申请信息
     * @return
     */
    List<ActivityRoomApplication> findAll();

    /**
     *
     * @param page 页码
     * @param pageSize 分页大小
     * @return
     */
    Page<ActivityRoomApplication> findByPage(Integer page, Integer pageSize);

    /**
     * 根据教室ID查询活动室申请信息
     * @param id 教室Id
     * @return
     */
    ActivityRoomApplication findActivityRoomApplicationById(Integer id);

    /**
     * 保存活动室申请信息
     * @param activityRoomApplication 活动室申请对象
     */
    void saveActivityRoomApplication(ActivityRoomApplication activityRoomApplication);

    /**
     * 根据活动室申请ID删除活动室申请信息
     * @param id
     */
    void deleteActivityRoomApplicationById(Integer id);

}